package com.airconditioner.sales.appliaction;

import android.app.Application;
import android.os.Handler;

import com.airconditioner.sales.service.IntentService;
import com.igexin.sdk.PushManager;
import com.igexin.sdk.PushService;

import org.xutils.x;

/**
 * Created by wafer on 2017/1/11.
 */

public class MyApplication extends Application {
    private static MyApplication application;
    private Handler wxHandler;

    public static MyApplication getInstance() {
        if (application == null) {
            application = new MyApplication();
        }
        return application;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        x.Ext.init(this);
    }

    public Handler getWxHandler() {
        return wxHandler;
    }

    public void setWxHandler(Handler wxHandler) {
        this.wxHandler = wxHandler;
    }
}
